package com.yourname.myapplication.Dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.yourname.myapplication.model.Question

@Dao
interface QuestionDao {
    @Insert
    suspend fun insertQuestion(question: Question)

    @Query("SELECT * FROM questions WHERE category = :category")
    suspend fun getQuestionsByCategory(category: String): List<Question>
}